﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
@model sipfe.model.dataAccess.SIPMaeOpcion
@using Resources;
@using sipfe.util;
@{   
    Layout = "~/Views/Shared/Layaout/general/_LayoutPopGeneral.cshtml";
    var nivel = new List<SelectListItem> { 
        new SelectListItem { Text = "Priemero", Value = "0"},
        new SelectListItem { Text = "Segundo", Value = "1"},
        new SelectListItem { Text = "Tercero", Value = "2"}
    };
    var submenu = new List<SelectListItem> { 
        new SelectListItem { Text = "Si", Value = "1"},
        new SelectListItem { Text = "No", Value = "0"}
    };     
}
<script type="text/javascript" language="javascript" src="@Url.Content(@properties.validatelJS)" ></script>
<script type="text/javascript" language="javascript" src="@Url.Content(@properties.unobtrusiveJS)" ></script>
<script type="text/javascript" language="javascript" src="@Url.Content(@properties.menuManteJS)" ></script>
<script type="text/javascript">
    $(function () {
        calendarFechaFuturo('dtFecIniVig', '1');       
    });
</script>

@using (Html.BeginForm("AgregarOpcionInp", "Menu", FormMethod.Post))
{
    @Html.ValidationSummary(true)
    <fieldset style="width:600px;" class="fieldsetStyle1">
        <legend class="tituloBlue9">Agregar nueva opción</legend>
         <table border="0" style="width:580px;" cellpadding="2" cellspacing="0" class="tablaDetalle1">
	     <tbody>							
	        <tr>
                <td style="width: 120px;" class="tituloCelesteB8">Nombre de Opción</td>
		        <td style="width: 1px;">:</td>
		        <td>@Html.TextBoxFor(model => model.vDescr, new {style="width:350px;text-transform:none;", maxlength=80 }) 
                    @Html.ValidationMessageFor(model => model.vDescr)
		        </td>
	        </tr>
            <tr>
                <td style="width: 120px;" class="tituloCelesteB8">Nivel</td>
		        <td style="width: 1px;">:</td>
                 <td>
		            @Html.DropDownList("nNivel", nivel, "--Seleccione--")                    
                    @Html.ValidationMessageFor(model => model.nNivel)
                 </td>
	        </tr>
             <tr>
                <td style="width: 120px;" class="tituloCelesteB8">Menú principal?</td>
		        <td style="width: 1px;">:</td>
                 <td>
		            @Html.DropDownList("nSubMenu", submenu, "--Seleccione--")                    
                    @Html.ValidationMessageFor(model => model.nSubMenu)
                 </td>
	        </tr>
            <tr>
                <td class="tituloCelesteB8">Orden</td>
		        <td>:</td>
		        <td>
                    @Html.TextBoxFor(model => model.nOrden, new { @maxlength = "2", style="width:20px;"})                    
                    @Html.ValidationMessageFor(model => model.nOrden)
		        </td>
	        </tr>           
             <tr>
                <td class="tituloCelesteB8">Fec. Inicio Vigencia</td>
		        <td>:</td>
		        <td>
                    @Html.TextBoxFor(model => model.dtFecIniVig, new { @maxlength = "10", style="width:60px;"})                    
                    @Html.ValidationMessageFor(model => model.dtFecIniVig)
		        </td>
	        </tr>             
            <tr><td colspan="3" align="center"><input type="button" value="Registrar Datos" onclick="javascript: agregarOpcionFinal(this.form);" /></td></tr>
            
             @Html.Hidden("nIdeUsuReg",@Session[ Constante.N_IDE_USUARIO])
             @Html.Hidden("dtFecReg", @DateTime.Now.ToString())
             @Html.Hidden("nEstado", 1)
         </tbody>
         </table>       
    </fieldset>
}